package com.event.common.constant;

/**
 * BinlogRowEvent常量
 */
public class BinlogRowEventConst {
    // 事件名称
    public final static String EVENT_NAME = "binlogRowEvent";
    // 查询表结构SQL
    public final static String SECHEMA_MYBATIS_SQL = "SELECT ordinal_position AS ordinalPosition, column_name AS columnName, is_nullable AS isNullable, data_type AS dataType, column_comment AS columnComment FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = #{schema} AND TABLE_NAME = #{table} ORDER BY ordinal_position";
    // 锁
    public final static String EVENT_LCOK = "BINLOG:LOCK:ROWEVENT";
    // binlogRowEvent最后位置
    public final static String BINLOGROWEVENT_LAST_POSITION = "BINLOG:LAST_POSITION";
    // 默认一个小时
    public final static int EVENT_LOCK_TIMEOUT = 60;
    // INT_ZERO
    public final static Integer INT_ZERO = 0;
    // INT_ONE
    public final static Integer INT_ONE = 1;
    // INT_TWO
    public final static Integer INT_TWO = 2;
    // INT_THREE
    public final static Integer INT_THREE = 3;
    // INT_THIRTY
    public final static Integer INT_THIRTY = 30;
}
